<table class="table">
  <thead>
    <th class="first"><%= sort_link @search, :presentation, "#{t 'helpers.label.parameter.presentation'}" %></th>
    <th><%= "#{t 'helpers.label.parameter.parameter_values'}" %></th>
    <th class="last"></th>
  </thead>
  <tfoot>
    <th colspan="2"><%= button_to_new "Vytvořit nový volitelný parametr", new_admin_parameter_path if permitted_to? :create, :admin_parameters %></th>
    <th colspan="2"><%= paginate parameters %></th>
  </tfoot>
  <tbody>
    <% unless parameters.blank? %>
      <%= render :partial => "parameter", :collection => parameters %>
    <% else %>
      <tr>
        <th colspan="10">Nebyly nalezeny žádné volitelné parametry.</th>
      </tr>
    <% end %>
  </tbody>
</table>